﻿namespace Model.Domain
{
    /// <summary>
    /// JwtConfig类用于存储JWT配置的各项参数。
    /// </summary>
    public class JwtConfig
    {
        /// <summary>
        /// JWT密钥
        /// </summary>
        public string Secret { get; set; }

        /// <summary>
        /// JWT发行者
        /// </summary>
        public string Issuer { get; set; }

        /// <summary>
        /// JWT受众
        /// </summary>
        public string Audience { get; set; }

        /// <summary>
        /// 访问令牌的过期时间
        /// </summary>
        public int AccessExpiration { get; set; }

        /// <summary>
        /// 刷新令牌的过期时间
        /// </summary>
        public int RefreshExpiration { get; set; }

        /// <summary>
        /// 令牌的过期时间
        /// </summary>
        public int ExpireTime { get; set; }

        /// <summary>
        /// 管理员JWT密钥
        /// </summary>
        public string AdminJwtKey { get; set; }

        /// <summary>
        /// 客户JWT密钥
        /// </summary>
        public string CustomerJwtKey { get; set; }
    }
}